import {defHttp} from '/@/utils/http/axios';
import { Modal } from "ant-design-vue";


export enum Api {
  bankRunningTemplist = "/bankRunningTemp/list",
  findBalanceCheckDataGrid = "/bankRunningTemp/findBalanceCheckDataGrid",
  findBalanceCheckDataList = "/bankRunningTemp/findBalanceCheckDataList",
  importXls = '/bankRunningTemp/importExcel',
  doMatcher = '/bankRunningTemp/doMatcher',
  clearMatcher = '/bankRunningTemp/clearMatcher',

  bankRunningTempById = "/bankRunningTemp/queryById",
  bankRunningTempEdit = "/bankRunningTemp/update",

}

/**
 * 导入api
 */
export const getImportUrl = Api.importXls;

/**
 * 银行流水 - 通过ID获取数据
 * @param params
 */
export const bankRunningTempById = (params) => defHttp.get({url: Api.bankRunningTempById, params});

/**
 * 银行流水 - 修改对账日期
 * 2025-10-25
 * @param params
 */
export const bankRunningTempEdit = (params) => defHttp.get({ url: Api.bankRunningTempEdit, params}, { isTransformResponse: false });

/**
 * 支出流水 - 列表
 * @param params
 */
export const bankRunningTemplist = (params) => defHttp.get({url: Api.bankRunningTemplist, params});

/**
 * 公账对账 - 每日差异
 * @param params
 */
export const findBalanceCheckDataGrid = (params) => defHttp.get({url: Api.findBalanceCheckDataGrid, params}, {isTransformResponse: false});

/**
 * 公账对账 - 某日差异
 * @param params
 */
export const findBalanceCheckDataList = (params) => defHttp.get({url: Api.findBalanceCheckDataList, params}, {isTransformResponse: false});

export const doMatcher = () => defHttp.get({url: Api.doMatcher});

export const clearMatcher = () => defHttp.get({url: Api.clearMatcher});
